#ifndef EXAMINEMEMORYDLG_H
#define EXAMINEMEMORYDLG_H

#include <wx/panel.h>
#include <M_Code_debugger_interfaces.h>

class wxTextCtrl;

class ExamineMemoryDlg : public wxPanel, public cbExamineMemoryDlg {
  public:
    ExamineMemoryDlg( wxWindow* parent );
    wxWindow* GetWindow() { return this; }
    void Begin();
    void End();
    void Clear();
    wxString GetBaseAddress();
    void SetBaseAddress( const wxString &addr );
    int GetBytes();
    void AddError( const wxString& err );
    void AddHexByte( const wxString& addr, const wxString& hexbyte );
    void EnableWindow( bool enable );
  protected:
    void OnGo( wxCommandEvent& event );
  private:
    wxTextCtrl* m_pText;
    size_t m_ByteCounter;
    wxChar m_LineText[67];
    bool xml_File_lock;
    unsigned long m_LastRowStartingAddress;
  private:
    DECLARE_EVENT_TABLE()
};

#endif
